package factory;
/**
 * @author Joachim
 * @use This class servers as an id Generator. If we add workers each one should have an unique id
 * @see primary key
 */

public class IdGenerator {

	private int id;
	public IdGenerator(){
		id++;
		return;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public int getNewId() {
		setId(id++);

		id++;
		return id;
	}
}
